package com.caipos.actor.common.data.rule;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.caipos.actor.common.data.EntityType;
import com.caipos.actor.common.data.id.EntityId;
import com.fasterxml.jackson.databind.JsonNode;
import lombok.Builder;
import lombok.Data;

import java.sql.Timestamp;

@Data
@TableName("rule_chain")
@Builder
public class RuleChain implements EntityId {
    @TableId
    private String id;
    private Timestamp createdTime;
    private JsonNode additionalInfo;
    private JsonNode configuration;
    private String name;
    private String type;
    private String firstRuleNodeId;
    private Boolean root;
    private Boolean debugMode;
    private String tenantId;
    private String externalId;
    private Long version;

    @Override
    public EntityType getEntityType() {
        return EntityType.RULE_CHAIN;
    }
}